/*
 * @description:
 * @version: 1.0.1
 * @Author: xuqiulin
 * @Date: 2021-04-30 21:33:32
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-05-01 09:25:27
 */
package main

import (
	"GameServer/Game/sp"
	"fmt"
	"log"
	"os"
	"os/signal"
	"syscall"
)

func main() {

	log.Println("启动程序...")

	client := NewClient()
	client.Start()

	client.WriteMsg(&sp.LoginRequest{
		Uid: "5f2276dc7401d909e721c84c",
	})

	c := make(chan os.Signal, 1)
	signal.Notify(c, os.Interrupt, os.Kill, syscall.SIGINT, syscall.SIGTERM)
	sig := <-c
	fmt.Println("结束程序", sig)
}
